var express = require('express');
var channel = require("./channel");
var show = require("./show");
var port = 80;
var app = express.createServer();
app.set('view engine', 'jade');
app.set('view options', {layout: false});
app.all('/channel/:name', function(req, res) {
    channel.get_channel_logout(req.params.name,function(items){
        //console.log(req.params.name);
        res.send(items);
    });
});
app.all('/show/:path', function(req, res) {
    show.get_show_logout(req.params.path,function(object){
        //console.log(req.params.path);
        res.send(object);
    });
});
app.listen(port);